package com.wgy.designmode.action.visitor.visitor;

import com.wgy.designmode.action.visitor.element.Keyboard;
import com.wgy.designmode.action.visitor.element.Monitor;
import com.wgy.designmode.action.visitor.element.Mouse;

public class ComputerPartVisitor_1 implements ComputerPartVisitor{
    @Override
    public void visit(Mouse mouse) {
        System.out.println("访问者1号操作鼠标");
    }

    @Override
    public void visit(Keyboard keyboard) {
        System.out.println("访问者1号操作键盘");
    }

    @Override
    public void visit(Monitor monitor) {

        System.out.println("访问者1号操作显示器");

    }
}
